package com.woniu.order.controller;

import com.woniu.common.utils.PageParam;
import com.woniu.common.utils.ResponseData;
import com.woniu.order.dto.LogisticsDto;
import com.woniu.order.pojo.Logistics;
import com.woniu.order.service.LogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class LogisticsController {
    @Autowired
    private LogisticsService logisticsService;

    @PostMapping("/AddDeliverGoods")
    public ResponseData<?> AddDeliverGoods(@RequestBody LogisticsDto params) {
        return logisticsService.AddDeliverGoods(params);
    }
    @PostMapping("/queryWuliuAll")
    public ResponseData<?> queryWuliuAll(@RequestBody PageParam<?> param){
        return logisticsService.queryWuliuAll(param);

    }
}
